import request from '/@/utils/request';

// 登录
export const login = (data: any) => {
	return request({
		url: '/login/loginUser',
		method: 'post',
		data,
	});
};

// 设备管理列表
export const getDeviceList = (data: any) => {
	return request({
		url: '/device/getList',
		method: 'post',
		data,
	});
};

// 设备管理添加
export const deviceAdd = (data: any) => {
	return request({
		url: '/device/createOrUpdate',
		method: 'post',
		data,
	});
};

// 用户列表
export const getUserList = (data: any) => {
	return request({
		url: '/user/getList',
		method: 'post',
		data,
	});
};

// 用户添加
export const addUserList = (data: any) => {
	return request({
		url: '/user/update',
		method: 'post',
		data,
	});
};

// 用户添加
export const getClientLogList = (data: any) => {
	return request({
		url: '/clientLog/getList',
		method: 'post',
		data,
	});
};
